package cate.game.fight.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBFight;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "处理战斗结果 の 请求")
public class FightResultReq implements MsgInput {
    @NoteField(value = "功能ID")
    public int funcId;

    @NoteField(value = "是否跳过")
    public boolean skip = false;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        game.fight.task.handleResultManually(cc.getRole(), funcId, skip);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBFight.FIGHT_RESULT_REQ;
    }
}
